#include <memory>
#include <iostream>
#include <gtest/gtest.h>
#include <glog/logging.h>


using namespace std;

class FooEnvironment : public testing::Environment
{
public:
    virtual void SetUp()
    {
        std::cout << "Collect Environment SetUP" << std::endl;
    }
    virtual void TearDown()
    {
        std::cout << "Collect Environment TearDown" << std::endl;
    }
};

int main(int argc, char *argv[])
{
    testing::AddGlobalTestEnvironment(new FooEnvironment);
    FLAGS_log_dir = "./log/";
    google::InitGoogleLogging(argv[0]);
    testing::InitGoogleTest(&argc,argv);

    return RUN_ALL_TESTS();
}